﻿using System;
using System.Collections.Generic;
using System.Linq;

using System.Web.Mvc;

namespace Sky.Web.Views.Helper
{
    public static class Helper
    {
        public static string TrunCate(this HtmlHelper helper, string input, int length)
        {
            if (input.Length < length)
            {
                return input;
            }
            else
            {
                return input.Substring(0, length) + "...";
            }
        }   
    }
}